import 'package:flutter/material.dart';

//无状态组件
class NotFoundPage extends StatelessWidget{
  const NotFoundPage({super.key});


  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: "404",
      home: Scaffold(
        body: Column(
          children: [
            const Text("404"),
            ElevatedButton(
                onPressed: () {
                  Navigator.pop(context);
                },
                child: const Text("返回上一页")
            )

          ],
        ),
      ),
    );
  }
}

